 package testcontroller;

 /**
 * @author dayu
 * @date 2018/11/01
 */
public class ThreadEg extends Thread{

    public void run() {
        try {
            System.out.println("sleep 6 s,name="+Thread.currentThread().getName());
            Thread.sleep(1000);
            String accessToken = WeixinService.getInstance().getAccessToken();
            System.out.println("name="+Thread.currentThread().getName()+"ACCESS_TOKEN=" + accessToken);
        } catch (InterruptedException e) {
             e.printStackTrace();
        }
    }
    
    

}
